<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
body {
    font-family: Helvetica, Ubuntu, sans;
    background-color: #303030;
    color: #fff;
}

table.center {
    width: 50%;
    float: left;
    padding-bottom: 20px;
}

td {
    vertical-align: top;
}

td.title {
    color: #ff6;
    font-weight: bold;
}

td.shortcut {
    font-family: Monaco, "Ubuntu Mono", monospace;
    color: #ff6;
    text-align: right;
    font-size: 0.8em;
}

span.title {
    font-size: 1.3em;
    font-weight: bold;
}
	</style>
</head>

<body>
<span class="title">键盘快捷键</span>
<hr />

<!-- Preparing Commits -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">提交</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Return</td>
    <td>:</td>
    <td>提交已缓存变更</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + Return</td>
    <td>:</td>
    <td>Prepare commit message hook</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + S</td>
    <td>:</td>
    <td>缓存所选项目</td>
</tr>
<tr>
    <td class="shortcut">Alt + A</td>
    <td>:</td>
    <td>缓存已更改项目</td>
</tr>
<tr>
    <td class="shortcut">Alt + U</td>
    <td>:</td>
    <td>缓存未追踪项目</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + U</td>
    <td>:</td>
    <td>还原缓存改动</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Z</td>
    <td>:</td>
    <td>撤销未缓存变更</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + M</td>
    <td>:</td>
    <!-- TODO -->
    <td>Merge branches</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + M</td>
    <td>:</td>
    <td>修正前一次提交</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + C</td>
    <td>:</td>
    <!-- TODO -->
    <td>Cherry pick</td>
</tr>
</table>

<!-- Actions -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">操作</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + B</td>
    <td>:</td>
    <td>建立新分支</td>
</tr>
<tr>
    <td class="shortcut">Alt + B</td>
    <td>:</td>
    <td>取出分支內容</td>
</tr>
<tr>
    <td class="shortcut">T / Ctrl + T</td>
    <td>:</td>
    <td>Find files</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + G</td>
    <td>:</td>
    <td>搜索</td>
</tr>
<tr>
    <td class="shortcut">Alt + D</td>
    <td>:</td>
    <td>显示内容差异</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + E</td>
    <td>:</td>
    <td>导出差异</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + S</td>
    <td>:</td>
    <td>缓存</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Enter</td>
    <td>:</td>
    <td>Apply Stash</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Backspace</td>
    <td>:</td>
    <td>Pop Stash</td>
</tr>
<tr>
<td class="shortcut">Ctrl + Shift + Backspace</td>
    <td>:</td>
    <td>Drop Stash</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Backspace</td>
    <td>:</td>
    <td>Delete untracked files</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + f</td>
    <td>:</td>
    <td>Toggle paths filter</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + R</td>
    <td>:</td>
    <td>重新整理</td>
</tr>
<tr>
    <td class="shortcut">?</td>
    <td>:</td>
    <td>显示键盘快捷键列表</td>
</tr>
</table>

<!-- Editing -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">编辑</td>
</tr>
<tr>
    <td class="shortcut">Enter / Ctrl + E</td>
    <td>:</td>
    <td>启动文本编辑器</td>
</tr>
<tr>
    <td class="shortcut">空白鍵</td>
    <td>:</td>
    <td>用默认程序打开</td>
</tr>
<tr>
    <td class="shortcut">Shift + 空白鍵</td>
    <td>:</td>
    <td>打开上级目录</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + E</td>
    <td>:</td>
    <td>查看 / 编辑最近修改的文件</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + #</td>
    <td>:</td>
    <td>聚焦于工具</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + #</td>
    <td>:</td>
    <td>显示/隐藏工具</td>
</tr>
</table>

<!-- Diff -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">差异查看器</td>
</tr>
<tr>
    <td class="shortcut">S</td>
    <td>:</td>
    <td>缓存所选项目，未选择项目时与<strong><em>H</em></strong>作用相同
    </td>
</tr>
<tr>
    <td class="shortcut">Ctrl + D</td>
    <td>:</td>
    <td>使用「git difftool」命令查看内容差异</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + D</td>
    <td>:</td>
    <td>View directory diff using `git difftool --dir-diff`</td>
</tr>
</table>


<!-- Browser actions -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">「浏览器」窗口操作</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + H</td>
    <td>:</td>
    <td>查看变更历史</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + D</td>
    <td>:</td>
    <td>与之前版本比较差异</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Alt + C</td>
    <td>:</td>
    <td>Copy SHA-1</td>
</tr>
</table>

<!-- Tree navigation -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">导航键</td>
</tr>
<tr>
    <td class="shortcut">H</td>
    <td>:</td>
    <td>左移／折叠</td>
</tr>
<tr>
    <td class="shortcut">J / Alt + J</td>
    <td>:</td>
    <td>下移</td>
</tr>
<tr>
    <td class="shortcut">K / Alt + K</td>
    <td>:</td>
    <td>上移</td>
</tr>
<tr>
    <td class="shortcut">L</td>
    <td>:</td>
    <td>右移／展开</td>
</tr>
<!-- TODO: translate the following -->
<tr>
    <td class="shortcut">Ctrl + J</td>
    <td>:</td>
    <td>Focus the Diff Editor</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + K</td>
    <td>:</td>
    <td>Focus the Status tool</td>
</tr>
<tr title="Ctrl+L also focuses the DAG revspec, grep query, ...">
    <td class="shortcut">Ctrl + L</td>
    <td>:</td>
    <!-- TODO: Focus the Commit tool -->
    <td>聚焦在 DAG 输入框</td>
</tr>
</table>
</body>
